package io.renren.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import io.renren.entity.NationalFlagEntity;

/**
 * 国旗
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-25 14:31:14
 */
public interface NationalFlagService {
	
	NationalFlagEntity queryObject(Integer id);
	
	List<NationalFlagEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(NationalFlagEntity nationalFlag);
	
	void update(NationalFlagEntity nationalFlag);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void upload(MultipartFile file, NationalFlagEntity nationalFlag) throws IllegalStateException, IOException ;
	
	NationalFlagEntity queryByUrl(String url);

	List<NationalFlagEntity> query(Map<String, Object> params);

}
